page {
  /* 颜色变量 */
  --text-primary: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --text-placeholder: #c0c4cc;
  --theme-color: #19be6b;
  --theme-color-dark: #18b566;
  --danger-color: #f56c6c;
  --warning-color: #f9ae3d;
  --bg-color: #f7f8fa;
  --white: #ffffff;
  --border-color: #ebedf0;

  /* 字体大小变量 */
  --font-size-xl: 32rpx;
  /* 为总价等关键信息预留一个更大的尺寸 */
  --font-size-lg: 28rpx;
  --font-size-md: 26rpx;
  --font-size-sm: 24rpx;
  --font-size-xs: 22rpx;
}

.page-container {
  padding-bottom: 180rpx;
}

// 订单信息卡片
.order-info-card {
  background: var(--white);
  margin: 24rpx 30rpx;
  padding: 30rpx;
  border-radius: 16rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .info-details {
    flex: 1; // 信息区域占据剩余空间
    min-width: 0; // 防止内容溢出时撑开布局
  }

  .contact-action {
    flex-shrink: 0; // 防止按钮被压缩
    margin-left: 24rpx; // 与信息区域保持间距

    .contact-btn {

      // 对 van-button 进行微调
      .van-button {
        padding: 0 28rpx !important;
        height: 60rpx !important;
      }
    }
  }

  .info-row {
    display: flex;
    align-items: flex-start;
    font-size: var(--font-size-md);
    line-height: 1.6;

    &:not(:last-child) {
      margin-bottom: 16rpx;
    }

    .info-icon {
      margin-right: 16rpx;
      color: var(--theme-color);
      font-size: 32rpx !important;
      position: relative;
      top: 6rpx;
    }

    .label {
      color: var(--text-secondary);
      flex-shrink: 0;
      margin-right: 10rpx;
    }

    .value {
      color: var(--text-regular);

      &.bold {
        color: var(--text-primary);
        font-weight: 500;
      }
    }
  }
}


.items-list {
  .item-wrapper {
    animation: slide-up 0.4s ease-out forwards;
  }
}

.actions-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20rpx;
  margin: 20rpx 10rpx;

  .add-item-btn {
    display: flex;
    align-items: center;
    flex: 2;
    height: 90rpx;
    justify-content: center;
    border-radius: 10rpx;
    color: var(--theme-color);
    font-size: var(--font-size-md);
    background-color: var(--theme-color);

    van-icon {
      margin-right: 8rpx;
      font-size: 32rpx !important;
    }
  }

  .total-summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1;
    height: 90rpx;

    .summary-label {
      color: var(--text-regular);
      font-size: var(--font-size-lg);
      font-weight: bold;
    }

    .summary-value {
      color: var(--danger-color); // 使用危险色突出总价
      font-size: var(--font-size-xl);
      font-weight: bold;
    }
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.form-section {
  .form-card {
    background-color: var(--white);
    border-radius: 16rpx;
    margin: 0 30rpx 24rpx;
    padding: 30rpx;
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24rpx;

      .title {
        color: var(--text-primary);
        font-size: var(--font-size-lg);
        font-weight: 500;
      }

      .required {
        color: var(--danger-color);
        font-size: var(--font-size-sm);
      }

      .optional {
        color: var(--text-secondary);
        font-size: var(--font-size-sm);
      }
    }
  }
}

.billing-card {
  margin-top: 24rpx !important;

  .billing-type-selector {
    display: flex;
    gap: 20rpx;

    .option {
      display: flex;
      align-items: center;
      padding: 12rpx 24rpx;
      border: 1rpx solid var(--border-color);
      border-radius: 30rpx;
      font-size: var(--font-size-sm);
      color: var(--text-regular);
      transition: all 0.2s;

      .radio {
        display: none;
      }

      &.active {
        background-color: var(--theme-color);
        color: #fff;
        border-color: var(--theme-color);
      }
    }
  }
}


// 参与人员列表
.participant-list {
  display: flex;
  gap: 24rpx;

  .participant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16rpx;
    border: 2rpx solid transparent;
    border-radius: 12rpx;
    position: relative;
    transition: all 0.2s ease-in-out;

    .avatar {
      width: 90rpx;
      height: 90rpx;
      border-radius: 50%;
      margin-bottom: 12rpx;
    }

    .name {
      font-size: var(--font-size-sm);
      color: var(--text-regular);
    }

    &.active {
      border-color: var(--theme-color);

      .name {
        color: var(--theme-color);
      }
    }

    .check-icon {
      position: absolute;
      top: 0;
      right: 0;
      width: 32rpx;
      height: 32rpx;
      background-color: var(--theme-color);
      border-radius: 0 12rpx 0 12rpx;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

.remarks-input {
  width: 100%;
  height: 160rpx;
  background-color: #f7f8fa;
  padding: 20rpx;
  box-sizing: border-box;
  border-radius: 8rpx;
  font-size: var(--font-size-md);
  color: var(--text-primary);
}

// 底部按钮组
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 20rpx 30rpx;
  padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
	z-index: 999;
  .button-group {
    display: flex;
    justify-content: center;
    gap: 20rpx;

    .action-btn {
      width: 300rpx;

      .van-button {
        height: 90rpx !important;
        font-size: var(--font-size-lg) !important;
      }
    }
  }
}